home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / RTANKSRC.ZIP / SHOP.H < prev    next >
Text File  |  1989-01-18  |  1KB  |  57 lines

  1.  
  2. #define   WINDOW struct window_type
  3. #define p_WINDOW WINDOW *
  4. #define   MENU struct menu_type
  5. #define p_MENU MENU *
  6. #define   PLAYER struct player_type
  7. #define p_PLAYER PLAYER *
  8.  
  9. #define TGRASS   1
  10. #define TSWAMP   2
  11. #define TWOODS   3
  12. #define TVILLAGE 4
  13.  
  14. #define ALLOUT 0
  15. #define TEAMA  1
  16. #define TEAMB  2
  17.  
  18. PLAYER {
  19.    char    tankname[10];
  20.    int     chassisType;
  21.    int     weaponsType[10];
  22.    int     extrasType[10];
  23.    int     tank_handle;
  24.    BOOL    active;
  25.    BOOL    inbattle;
  26. };
  27.  
  28. WINDOW {
  29.    int wx1, wx2, wy1, wy2;
  30.    char *buf;
  31. };
  32.  
  33. MENU {
  34.    char   *title;
  35.    BOOL   bpulldown;
  36.    int    noptions;
  37. };
  38.  
  39. void v_open_window(p_WINDOW w,int x1,int y1, int x2, int y2);
  40. void v_draw_shop_screen(void);
  41. void main(void);
  42. void v_close_window(p_WINDOW w);
  43. int  n_operate_menu(MENU m[]);
  44. void v_fill_pwindow(p_WINDOW w, int a);
  45. void v_print_array(int x, int y, PSTR m[]);
  46. void v_paint_box(int x1, int y1, int x2, int y2);
  47. void v_single_box(int x1,int y1, int x2, int y2);
  48. int  n_operate_pulldown(p_WINDOW w, PSTR m[]);
  49. void v_get_tank_name(PSTR s);
  50. void v_picklist(int a, PSTR m[]);
  51. void v_init_tank(p_PLAYER t);
  52. void v_update_screen(p_PLAYER t);
  53. void v_add_from_picklist(int aa, int bb);
  54. void v_save_tank(p_PLAYER t);
  55. void v_load_tank(p_PLAYER t);
  56. void v_read_tank_from_disk(PSTR s, p_PLAYER t);
  57.